import request from '@/utils/request'

// 查询运单结算方式列表
export function listPaymentType(query) {
  return request({
    url: '/source/paymentType/list',
    method: 'get',
    params: query
  })
}

// 查询运单结算方式详细
export function getPaymentType(id) {
  return request({
    url: '/source/paymentType/' + id,
    method: 'get'
  })
}

// 新增运单结算方式
export function addPaymentType(data) {
  return request({
    url: '/source/paymentType',
    method: 'post',
    data: data
  })
}

// 修改运单结算方式
export function updatePaymentType(data) {
  return request({
    url: '/source/paymentType',
    method: 'put',
    data: data
  })
}

// 删除运单结算方式
export function delPaymentType(id) {
  return request({
    url: '/source/paymentType/' + id,
    method: 'delete'
  })
}
